package com.tencentcloudapi.wemeet.client;

import com.google.gson.reflect.TypeToken;
import com.tencentcloudapi.wemeet.common.RequestSender;
import com.tencentcloudapi.wemeet.common.exception.WemeetSdkException;
import com.tencentcloudapi.wemeet.models.app.AppUserInfoRequest;
import com.tencentcloudapi.wemeet.models.app.AppUserInfoResponse;

public class AppClient {
    private final RequestSender sender;
    public AppClient(RequestSender sender){
        this.sender=sender;
    }

    public AppUserInfoResponse  getUserInfo(AppUserInfoRequest request) throws WemeetSdkException {
        return sender.request(request,new TypeToken<AppUserInfoResponse>(){
        });
    }
}
